package com.ld.tool.controller.tool;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ld.admin.controller.AdminBasicController;
import com.ld.tool.model.tool.ShieldjsDemoModel;
import com.ld.tool.service.tool.ShieldjsDemoService;
import com.ld.tool.util.OnlineToolConfig;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 
 * 在线工具
 * 
 * @ClassName OnlineToolController
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年09月04日 08:38:05
 *
 */
@Api(tags = "在线工具")
@Controller(value = "toolOnlineToolController")
@RequestMapping("${shieldsb.adminPath}/tool/onlinetool")
public class OnlineToolController extends AdminBasicController<ShieldjsDemoModel> {
    @Autowired
    protected ShieldjsDemoService shieldjsDemoService;

    @ApiOperation(value = "首页", notes = "")
    @RequestMapping(path = "", method = RequestMethod.GET)
    public String index() {
        request.setAttribute("list", OnlineToolConfig.getOnlineToolsGroupByType());
        return "a/tool/onlinetool";
    }

}